<?php echo $header; ?>


		  <!-- Start - Left Side -->
	      <div id="left" class="span-24 ">
	      	<div id="account_reward" class="span-24 checkout">
	      		
	    		<div class="heading_x span-24">
					<span><?php echo $heading_title; ?></span>
					<hr />
				</div>
	    		<p id="text_total"><?php echo $text_total; ?><b><?php echo $total; ?></b></p>
  <table class="list">
    <thead>
      <tr>
        <td class="left label" width="15%"><?php echo $column_date_added; ?></td>
        <td class="left label"><?php echo $column_description; ?></td>
        <td class="right label"><?php echo $column_points; ?></td>
      </tr>
    </thead>
    <tbody>
      <?php if ($rewards) { ?>
      <?php foreach ($rewards  as $reward) { ?>
      <tr>
        <td class="left" width="15%"><?php echo $reward['date_added']; ?></td>
        <td class="left"><?php if ($reward['order_id']) { ?>
          <a href="<?php echo $reward['href']; ?>"><?php echo $reward['description']; ?></a>
          <?php } else { ?>
          <?php echo $reward['description']; ?>
          <?php } ?></td>
        <td class="right">
        	<?php $plus = "";
			
        		if($reward['points'] > 0){
        			$class = "reward_plus";
        			$plus = "+";
        		}else if($reward['points'] < 0){
        			$class = "reward_minus";
        			$plus = "";
        		}
        	?>
        	<span class="<?php echo $class;?>"><?php echo $plus.$reward['points']; ?></span>
    	</td>
      </tr>
      <?php } ?>
      <?php } else { ?>
      <tr>
        <td class="center" colspan="5"><?php echo $text_empty; ?></td>
      </tr>
      <?php } ?>
    </tbody>
  </table>
    <div class="pagination"><?php echo $pagination; ?></div>
    <div class="buttons">
    	
    	<div class="galib_btn1 float_right">
            		<a onclick="location = '<?php echo str_replace('&', '&amp;', $continue); ?>'"><span><?php echo $button_continue; ?></span></a>
        </div>
     	<div style="clear:both;"></div>
    </div>
  			</div> 
	      </div>
       	 <!-- End - Left Side -->
       	 
       	 


<?php echo $footer; ?> 

